package languageacquisition;

import org.jfree.data.time.Millisecond;
import org.jfree.ui.RefineryUtilities;



public class ChartFromDB {
	DynamicChart demo;

	public ChartFromDB(double[][] cor_value) {
		demo = new DynamicChart("Language Process", cor_value[0].length);

		demo.pack();
		RefineryUtilities.centerFrameOnScreen(demo);
		demo.setVisible(true); 
		

		
		for (int k = 0; k < cor_value.length; k++) {
			for (int i = 0; i < cor_value[0].length; i++)
				demo.series[i].addOrUpdate(new Millisecond(), cor_value[k][i]);
		}

	}
	// TODO Auto-generated constructor stub

}
